package com.wxcms.service.impl;

import com.wxcms.domain.EimpAccount;
import com.wxcms.mapper.EimpAccountDao;
import com.wxcms.service.EimpAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class EimpAccountServiceImpl implements EimpAccountService{

	@Autowired
	private EimpAccountDao entityDao;

	public EimpAccount getById(String id){
		return entityDao.getById(id);
	}
	
	public EimpAccount getByOpenid(String openid){
		return entityDao.getByOpenid(openid);
	}

	public List<EimpAccount> listForPage(EimpAccount searchEntity){
		return entityDao.listForPage(searchEntity);
	}

	public void add(EimpAccount entity){
		entityDao.add(entity);
	}

	public void update(EimpAccount entity){
		entityDao.update(entity);
	}

	public void delete(EimpAccount entity){
		entityDao.delete(entity);
	}
	
	public List<EimpAccount> list(EimpAccount searchEntity){
		return entityDao.list(searchEntity);
	}

}